package SV_DOS_TMPFILEEXIT;

public class Example {
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String name = req.getParameter("userName");
        File file = File.createTempFile("file", ".dat");
        fillWithUserData(name);
        char[] data = readData(file);
        resp.getWriter().print(data);
    }

}
